package cn.psvmc.cxzapi.model.market;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 1+2Banner 实例表
 * @Author auto
 * @Date 2024-08-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_banner2")
public class TBanner2 implements Serializable {

    //1+2Banner 实例id
    @TableId(value = "banner_id", type = IdType.AUTO)
    private Integer bannerId;

    //组件id
    @TableField("component_id")
    private String componentId;

    //Banner图片
    @TableField("banner_img")
    private String bannerImg;

    //Banner位置(1左 2中 3右)
    @TableField("banner_position")
    private Integer bannerPosition;

    //分类类型（1商品 2分类 3链接）
    @TableField("sort_type")
    private Integer sortType;

    //对应ID或地址
    @TableField("id_address")
    private String idAddress;

    //创建人id
    @TableField(value = "createid", fill = FieldFill.INSERT)
    private Integer createid;

    //创建时间
    @TableField(value = "createtime", fill = FieldFill.INSERT)
    private LocalDateTime createtime;

    //操作人id
    @TableField(value = "updateid", fill = FieldFill.INSERT_UPDATE)
    private Integer updateid;

    //操作时间
    @TableField(value = "updatetime", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatetime;

    //版本号
    @TableField("rversion")
    @Version
    private Integer rversion;


}
